package com.snail.billing.json;

import org.json.JSONException;
import org.json.JSONObject;

public class JsonPassportEmail extends JsonBase {

	private String bindState;
	private String email;

	public JsonPassportEmail(String jsonString) {
		super(jsonString);
		try {
			if (getCode() == 1) {
				JSONObject json = new JSONObject(jsonString);
				if (json.has("bindState")) {
					bindState = json.getString("bindState");
				}
				if (json.has("email")) {
					email = json.getString("email");
				}
			}
		} catch (JSONException e) {
			e.printStackTrace();
		}
	}

	public String getBindState() {
		return bindState;
	}

	public String getEmail() {
		return email;
	}

}
